package cn.com.pxto.service;

import java.util.List;

import cn.com.pxto.commons.pagesupport.PageInfo;
import cn.com.pxto.model.User;

public interface UserManager {
	/**
	 * �����û�
	 * @param user
	 */
	public void createUser(User user);
	
	/**
	 * ���IDɾ���û�
	 * @param id
	 */
	public void deleteUserById(int id);
	
	/**
	 * �����û�
	 * @param user
	 */
	public void update(User user);
	
	/**
	 * ���ID�õ��û�
	 * @param id
	 * @return
	 */
	public User getUserById(int id);
	
	
	public User getUser(String userName);
	
	
	/**
	 * �ж��û����Ƿ�ռ��
	 * @param userName
	 * @return
	 */
	public boolean isUserExist(String userName);
	
	/**
	 * ���ORGID�õ��û��б�
	 * @param orgId
	 * @return
	 */
	public List<User> getUserByDeptId(Integer deptId,PageInfo pageInfo);
	

	public List<User> findUserByParams(Object[] obj,PageInfo pageInfo);
		
	public List<User> listAllUser(PageInfo pageInfo);
	
}
